package com.onehouse.domain.room.repository;

import com.onehouse.domain.room.model.RoomTypeEntity;

import java.util.List;
import java.util.Optional;

public interface IRoomTypeRepository {
    int insert(RoomTypeEntity roomType);
    Optional<RoomTypeEntity> selectById(Long typeId);
    List<RoomTypeEntity> selectList();
    int deleteById(Long typeId);
    int updateById(RoomTypeEntity roomType);
    boolean existedByTypeName(String typeName);
}
